<template>
  <p class="mb-3 text-2xl font-bold text-center xl:text-3xl enter-x xl:text-center">
    {{ underlineToHump(appStore.getTitle) }}
  </p>
</template>
<script lang="ts" name="LoginFormTitle" setup>
// import { LoginStateEnum, useLoginState } from './useLogin'
import { underlineToHump } from '@/utils'
import { useAppStore } from '@/store/modules/app'
// const { t } = useI18n()

// const { t } = useI18n()
const appStore = useAppStore()
// const { getLoginState } = useLoginState()

// const getFormTitle = computed(() => {
//   const titleObj = {
//     [LoginStateEnum.RESET_PASSWORD]: t('sys.login.forgetFormTitle'),
//     [LoginStateEnum.LOGIN]: t('sys.login.signInFormTitle'),
//     [LoginStateEnum.REGISTER]: t('sys.login.signUpFormTitle'),
//     [LoginStateEnum.MOBILE]: t('sys.login.mobileSignInFormTitle'),
//     [LoginStateEnum.QR_CODE]: t('sys.login.qrSignInFormTitle'),
//     [LoginStateEnum.SSO]: t('sys.login.ssoFormTitle')
//   }
//   return titleObj[unref(getLoginState)]
// })
</script>

<style lang="scss" scoped>
.xl\:text-3xl {
  font-size: 22px;
}
</style>
